<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-level_id" class="control-label col-xs-12 col-sm-2">{:__('关注用户')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-uid_id" data-rule="required" class="form-control selectpicker" name="row[uid]">
                {foreach name="userList" item="vo"}
                <option value="{$vo.id}" {if condition="$row.uid eq $vo['id']"}selected{/if}>{$vo.nickname}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-tid_id" class="control-label col-xs-12 col-sm-2">{:__('被关注用户')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-tid_id" data-rule="required" class="form-control selectpicker" name="row[tid]">
                {foreach name="userList" item="vo"}
                <option value="{$vo.id}" {if condition="$row.tid eq $vo['id']"}selected{/if}>{$vo.nickname}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('关注时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cratetime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[cratetime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
